package tech.aistar.corejava.day15.pool;

/**
 * @Author: lya
 * @Description: 本类的作用描述:
 * @CreateDate: 2019/8/4
 * @Version: 1.0
 */
public class MethodDemo {
    public static void main(String[] args) {
        test(3);

    }
    public static void test(int n){
        //n = 20;
        new IA(){
            @Override
            public void save(){
                System.out.println(n);
            }
        }.save();
    }
}
interface IA{
    void save();
}
